test if write is atomic for buffer size of 1mb