# File lib/rbase/memo_file.rb, line 41
      def write(value)
        @file.pos = @next_block*BLOCK_SIZE + HEADER_SIZE
        value += BLOCK_TERMINATOR
        blocks_num = (value.length+511)/512
        @file.write [value].pack("a#{512*blocks_num}")
        
        position = @next_block
        @next_block += blocks_num
        update_header
        
        position
      end