You need to seperate the rotor from the hub on the front. The best way to keep it from spinning while loosening the six bolts that hold the rotor to the hub, is to use an air impact wrench, OR put a towel over the jaws of a large vice & use a socket & breaker bar...

The air impact is far easier...

Then use a pin or drift punch + hammer, to pound out the remainder of the broken stud. Put a new stud in from the back side, making sure that the splines line up (you'll see, once the old one is out)give it a few taps to get it started, put a couple washers just slightly larger than the stud on the new stud, then find a lug nut that has no decorative cap (the stud has to go all the way through the nut) put the lug nut on backwards (flat side against the hub) & draw it into the hole by tightening the nut until the flange on the back side is tight up against the back of the hub...done

Put it all back together in reverse order.

You only need to replace whats broken, unless ALL the nuts were loose,& driven on.

Also, most wheels/lugs/nuts/etc are so over engineered that it's ridiculous, no worries driving on 5.