Your natural reaction was to cover your head thats quite a good reaction as things can go flying about the cabin in bad turbulence.
Next time go for an armrest or if it's bad and you're walking from the washroom to your seat, lift your arm up and place pressure on the overhead lockers with your hand to steady your balance. In future you will notice a lot of flight attendants do this when it's a bit lumpy in the cabin.