[FIX] fixed problem where output iterators start at the end-of-file in files opened with OPEN_APPEND mode