They may not be bad but only need tightening. I would inspect them tho, remove the wheel and then the brake caliper (two bolts from behind). Then remove the grease cap, by tapping a small screwdriver a little at a time around the outside edge trying not to dent it. Once removed, pull the cotter key out, the metal cover, and big nut that holds the bearing. Next there is a metal plate, you can rock the hub to get it out, then the outer bearing. The bearing should be a little loose, but check for discoloration and damage. There is an inner bearing as well, so slip the rotor off of the hub to access. In order to remove the rear bearing you have to remove the seal. Clean the bearings in gasoline with a toothbrush and then air dry with a compressor to ensure all the gas is out. To repack (new or used) the easiest way is to get a glob of grease on the palm of you hand, put a finger though the bearing, and let the bottom edge nip away at the grease, forcing a bit of it through the bearing until you see some coming through the top. Should take 4 or 5 "nips" until you see that- then rotate the bearing a bit in your finger until you have been all the way around and grease is packed in thoroughly.
Replace the rear bearing and seal (probably going to need a new seal for the back) and slide it back onto the shaft. reinstall the front bearing, metal plate, nut, and begin tightening the nut while rotating the rotor to ensure it isn't binding. Tighten until the rotor begins to be hard to turn, then back off until it is easy again. There is a happy medium here between dragging (bearing too tight) and wobble (bearing too loose) Find that spot and then replace the metal cover and rotate it along (without turning the nut) until holes line up in the spline so the cotter key will go back in, in the position you want. Push the cotter key through and bend it over then replace the grease cap, caliper, wheel, etc. You shouldn't have any wobble with the wheel on, and if you do, adjust it through the wheel as you won't have to remove all the other crap for a simple adjustment.
All this said, I doubt if this is the rattle. But let us know if it was...