The main point here is that, for common deterministic function, the quadratic variation is zero, since they are so-called "Smooth" function, but for Brown Motion, the quadratic variation is not zero, which means you need to include the second order term when you do the stochastic differentiation.
The right way to solve this SDE,is doing transform y=lnS, then apply Ito formula to y with respect to S.