Re: electrical confusion
Originally you had 3 wires hooked to the fan/light. One was for the fan motor, one for the light, and one was neutral along with ground wiring. The cable that has a white wire connected to to a black is no doubt the power to the switch, the black wire in that cable is the return that was connected to the light, that wire would be connected to the new light. One wire from the fan should have been connected to the black connected to the white that will no longer be used. The other white wire is the neutral which goes to the other side of the light.
Be sure you live your life, because you are a long time dead.-Scottish Proverb