Contain the water that has been flooding the bathroom. Use towels in the doorway to prevent the water from leaking through the rest of your residence.
Remove bathroom rugs and all items on the floor. You can place these in garbage bags or in sealed plastic containers and set them outside or place them directly into a clothes dryer or hang them up to dry.
Use a wet/dry vacuum to remove the bulk of the water. If you don't own one of these they are readily available at virtually any hardware store.
Use a disinfecting floor cleaner to mop the floor. Be detailed and get every nook and cranny. You may need to use a sponge to get around the edges of your bathroom and around the edges of your bathtub, toilet, and sink where mold likes to grow.
Place a dehumidifier in the doorway of the bathroom and use the highest setting. This will ensure all moisture is removed. Keep the dehumidifier on for at least two days, remembering to empty it before you are out of the house for extended periods of time. If you do not have a dehumidifier, open the window and use a fan or fans to circulate the air and vent the humidity out of the bathroom.