Voltage balance of lithium battery pack