As a firefighter I can say that you did the right thing. The car was a right-off - why take any risks?
Car fires produce very nasty toxic gases and breathing apparatus should be worn to fight them.
You did the best thing that you could have done.
"Scene Safety" is the first consideration at incidents on busy roads. By taking control of the traffic you made a useful contribution.