sequential write usingthread_pool