Btrfs: fix wrong write offset when replacing a device