correct methods for writing blocks of binary/character data