Are you trying to install Windows 98 on the same partition or on a different one?
If you are considering overwriting Windows 3.1 than I suggest you format first before installing Windows 98.
Overwriting an operating system is not a very good idea. Unless you are given the option to upgrade.