While I agree with AndyT's philosophy of simply using the solved equations, it is important to learn the origin of these solutions, so here we go.
The mistake you made was that you didn't perform the integration at all. You simply got the equation for the moment of inertia, ignored the integration sign, set $y$ as half the section's height, and replaced $\text{d}A$ with the section's area. That's not integration.
This is:
$$\begin{align}
I &= \int_A y^2\text{d}A \\
&= b\int_{-\frac{h}{2}}^{\frac{h}{2}} y^2\text{d}y \\
&= b \left.\dfrac{y^3}{3}\right|_{-\frac{h}{2}}^{\frac{h}{2}} \\
&= \dfrac{bh^3}{3}\left(\dfrac{1}{8}+\dfrac{1}{8}\right) \\
&= \dfrac{bh^3}{12}
\end{align}$$
Once you have the correct moment of inertia, calculating the stress is straightforward.