You can't do official updates while rooted, you should have unrooted before clicking yes.
Unrooting now won't help, the mess is done.
All you can do now is flash a fresh samsung stock firmware via Odin.
Before that just attempt to wipe cache partition, dalvik cache and factory reset, it might clear things and work if the things are not too bad. Otherwise Odin is your only option.
Samsung GT-S5830 Galaxy Ace
ROM: AOKP 4.2.2
Scripts: CronMod INT2EXT4+
245MHz - 800MHz, SmartassH3