Reduce down the onions on a medium to low heat, stirring so they don't stick. As the balsamic reduces you should see it thicken and the onions darken. After about 25 minutes they should be well cooked, you shouldn't be able to tell the difference between the white and red onion.