Simulated annealing algorithm for balanced allocation problem