Reinstall OS on GT-S5830i
Yes.you can reinstall the OS.

There's a low level flash tool called heimdall (or Odin) that can be used to reinstall the firmware or install aftermarket firmware onto the Galaxy Ace.