Don't ride it until you resolve the issue. If its a fork or steer tube the damage could give way while you are riding. At that point the ground might be the best option for things you could hit (others are trees, signs, cars, or into a car path, or another person). There are a lot of things to check, and if you aren't pretty bike savvy I'd suggest taking it into the bike shop and having them check the fork and steer tube and frame for alignment.