Inertial and viscous effects in the nonlinear growth of the tearing mode