Btrfs: fix the allocator loop logic