xfs: xfs_vm_write_end truncates too much on failure