If it's your first time out at night you may just be seeing the effect of the normal movement of the bike making the headlight bounce up and down. The headlamp is fairly solidly mounted so it will transmit any bump to the light beam.
If you are used to something much heavier like a car it will take a while to get used to, but it's normally less noticeble at speed.
However, there are a couple of things to check which will can go wrong:
1) Check the bulb is still properly clipped in place - the clip is a naff thing and is very fiddly to set properly. If it's not done right the bulb can fall out of the holder and wobble about.
2) There have been several cases (me included) where the internal reflector has been pushed out of the ball and socket adjusters. It can be easily done when a new bulb is pushed in place as it's cr*p design. If the reflector is loose it will jiggle about and with it the light beam. There's a few threads on how to fix it if it is loose