On a Navier-Stokes-Allen-Cahn model with inertial effects