xfs: fix failed write truncation handling.