Peel the onion and slice it into long, thin pieces.
Peel and grate the ginger with a Microplane so you have 1/2 tsp (for the spinach) and 1 tsp (for the cod) of freshly grated ginger.
Add enough oil to cover the bottom of a pan and place over medium heat.
Add the onion and saute for 5 minutes.
Add the 1/2 tsp ginger and saute for another 5 minutes.
Add the frozen spinach and saute until heated through, about 5 minutes.
Add the soy sauce and sesame seeds and toss until well mixed.
Move to a bowl, cover, and set aside while you cook the cod.
Make the miso glaze: mix the white miso, honey, soy sauce, and 1 tsp ginger until smooth.
Stir in the chili flakes.
Rinse and pat dry the cod, then cut it into individual serving pieces.
Brush one side of each piece of cod with the miso glaze.
In the same pan used for the spinach, add about 1 tbsp of oil and carefully swirl it around the bottom of the pan.
Add the cod, glazed side down, and cook for 4 to 5 minutes, until the glaze caramelizes.
Brush the top of the cod with more glaze, flip, and cook for another 3 to 4 minutes, until the cod flakes easily with a fork.
Serve the cod warm with the spinach and onions.