Let's call your "y amounts" bins. You state that you want to distribute your items into balanced between all bins.
One structure that has a similar property is balanced trees. What I'd do, then, is the following. First, populate a balanced tree using the chosen property as a key. Next, descend into a desired level of the tree, such that there are N elements on that level, N being the amount of bins you want. Put all element descendent from each of those nodes into a separate bin.
The only thing left, then, is distributing the elements on the nodes above that level into the bins. Just chose a criteria for selecting to what bin it will go and apply that. Your bins should be reasonably balanced.