I'm guessing from your post that you had the forks off and then reinstalled them. Did you line up the steering when you put the forks back on? If not, it's a simple matter. Loosen the bolts on the top triple clamp then, twist the handle bars, while holding the front wheel straight, until center notch on steering stem lines up. Retighten bolts and test ride.
I also loosen the bottom triple clamp bolts just a "teeny" bit when doing this procedure. Too loose and the forks will shoot up through the clamp and your front end will drop suddenly. If you want to skip loosening the bottom bolts it will still work for minor adjustments.