serialize block header