update size of dynamic MMap as we write in from the outside