Prevent allocating file on read-only device