btrfs: get fs_info from trans in btrfs_write_dirty_block_groups