iolog: add iolog_write for version 3