I did this problem so long ago, I'm not sure if I remember everything correctly.
However, I did notice you say E=mg. Actually, since F=mg and F=qE, your equation would actually be qE=mg. You have the charge of the object, therefore, you can solve for the electric field. I'm not sure how you...