Your approach is correct, but as you thought, the unit of measurement of mass is not in accordance with the unit of measurement of gravity: one is kg, the other one in N/g.
If you bring everything to kg, mass is correct and gravity will be g = 9.8 N/kg.
Therefore:
E = (m·g)/q = (8.2E-3×9.8)/(-3.3E-9) = -2.435E7
You get the same result if you use grams: m = 8.2g and g = 9.8E-3 N/g:
E = (m·g)/q = (8.2×9.8E-3)/(-3.3E-9) = -2.435E7