fixed struct alignment bug when writing the BPB to file or memory