Use non-empty file in checkwrite. Improve checkwrite messages.