Figure out how to fill buckets from the given batches.
bucketSize - The size of each bucket.
batches - The batches with the names and counts.
used - The number of items already used in a bucket.
If negative, we ignore it; if greater than the bucket
size, we take it modulo the bucket size. The first bucket
we will will have that many fewer items in it.