A written answer to a petition for a writ shall be filed not later than the time fixed for the hearing.