Make writepos readonly.