From my book "Fundamentals of Machine Elements" 2nd Edition by Hamrock, Schmidt, and Jacobsen, the equation for the mass moment of inertia can be calculated from knowledge of the speed fluctuation and kinetic energy. Here is how the authors state it.
"By knowing the desired coefficient of fluctuation for a specific application, obtaining the change in kinetic energy from the integration of the torque curve, and knowing the angular velocity, the mass moment of inertia required can be determined."
Ke = I*w^2*C
where
ke = kinetic energy
I = mass moment of inertia
C = coefficient of fluctuation
w = average omega value (angular velocity)
I = ke / C*w^2
Since the two equations are dependent upon each other you can use an iterative procedure to obtain the two results. I haven't done this myself so I don't know how fast the results will converge or if they will at all. If that doesn't work then use the integration of the torque curve.
Thanks
Matt