Lithium battery pack capacity allocation