Cook the pasta, drain and reserve 1 cup of cooking water. Heat the oil in a large pot and toss in the onion and pepper. Cook until caramelized. Add the ham and garlic.
Saute while stirring often for 3 to 5 minutes, until garlic is translucent. Mix in the oregano, tomato and black beans. Cook for 2 to 3 minutes, until warm.
Incorporate the reserved pasta water along with the cooked pasta.
Finish with mozzarella, parmesan and balsamic vinegar. Continue cooking to allow the cheeses to melt.
Taste and adjust with salt and pepper, if needed, then serve.
This recipe makes six servings.