Ceiling Fan-One switch, ceiling, 3 white, 3 black, red
I have a ceiling fan I am replacing. There is one wall switch. In the ceiling there is 3 black wires connected together, 3 white together and a red. I didn't notice any other wires and evidently, wrongly assumed the red was a ground. I connected the fan black and blue to the ceiling black and the white to the white. I connected the red to the fan ground. I figure there is a real ground wire shoved up in there out of site. Currently I have the switch operating the light and the fan stays on unless the pull chain is used. Where does this red really go once I take everything down and find the ground? I need the switch to operate both, fan and light.