In a large pot, bring water to a boil, add pasta, and let boil until al dente. When spaghetti is about three minutes from being done, add corn, black beans, and chopped habanero to the pot.
While pasta is cooking, coat frying pan with cooking spray and fry eggs. Season with salt and pepper.
Drain pasta, reserving about 1 cup of pasta water. Return pasta to the pot, along with salsa and about ¾ C of the reserved water. Toss to coat. Feel free to add more water to get pasta to desired consistency.
Divide pasta between four plates and top each with an egg. Garnish with cheese, cilantro, scallions, and avocado.