On the last toss, you want to maximize
$$ \frac12\left(\log(x+2S)+\log(x-S)\right)\;, $$
where $x$ is your balance before the last toss. Differentiating with respect to $S$, setting to zero and solving for $S$ yields $S=x/4$. The expected value for this optimal bet is
$$ \frac12\left(\log(x+x/2)+\log(x-x/4)\right)=\log x+\log3-\frac32\log 2\approx\log x+0.06\;. $$
Thus the expected value is simply the value $\log x$ you had before plus about $0.06$. It follows that on the previous toss you should also maximize the expected value of the logarithm of the balance, and likewise for all previous tosses, so on each toss you should bet one quarter of your current balance, and the expected value after $100$ tosses is
$$\log100+100\left(\log3-\frac32\log 2\right)\approx10.49\;.$$
(To compare with Ross' answer: I'm using natural logarithms whereas he uses decimal logarithms.)