fix bug occurring with even number of accounts when inserting dummy

fix bug occurring with even number of accounts when inserting dummy 

(rename "amount" -> "balance")