btrfs: split btrfs_alloc_ordered_extent to allocation and insertion helpers