mIRC uses mirc.ini to store setting when mirc is closed, so it writes to mirc.ini when you close mirc, and anything you have changed by hand when mirc is open will be lost.

from help file under /help /writeini :
Warning: Do not use this command to modify any of the INI files currently being used by mIRC.