'Writes data to the specified virtual address
Arguments:
address(int): Virtual address to write
data(str): Bytes to write
Note:
This routine does not check the bounds on the write to ensure
that it stays in the same segment.
Examples:
>>> bash = ELF(which(\'bash\'))
>>> bash.read(bash.address+1, 3)
\'ELF\'
>>> bash.write(bash.address, "HELO")
>>> bash.read(bash.address, 4)
\'HELO\''

def write(self, address, data):

    offset = self.vaddr_to_offset(address)
    if (offset is not None):
        length = len(data)
        self.mmap[offset:(offset + length)] = data
    return None
