Algorithm for balancing LI-PO batteries?
Most I've seen have a resistor and a transistor across each cell and use that to discharge the cells with too high voltage.

During charging the charger will stop charging and measure the cell voltages, if any of the cells have a higher voltage than the others, they are discharged a little.