ballance allocation logic fixed