Method for controlling air loop in internal combustion engine i.e. diesel engine, of vehicle, involves estimating gas flow traversing valves from thermodynamic parameters of air loop