added awaitWriterPreparation call in OnlineWriter.getBuffer()