Heat oil in a large skillet over medium-high heat. Cook ribs until evenly browned, about 5 minutes per side. Add onion; cook and stir until soft and translucent, 3 to 5 minutes. Pour in water; add allspice berries and bay leaves. Cover and simmer until flavors combine, about 40 minutes. Season with salt and pepper.