xfs: refactor accounting updates out of xfs_bmap_btalloc