To do what you describe, you would need additional components to "switch" one battery at a time into the power path. (This can be done with a single transistor if you're only worried about current flowing in one direction, but I believe it's trickier if you want to support both charging and discharging in the same circuit.)