Add benchmark for writeBlockHeader.

This commit adds a benchmark for the writeBlockHeader function.