Molecular clouds associated with compact H II regions. II. The rapidly rotating condensation associated with ON1