synchronized checkWritable