Write logs with a single write call. Avoids concurrent write problems.