It seems that the bulb only grow the roots, not the leaf when I want it to grow the leaf on the top, could you please let me know how to sort it out?
Onions have an annual growth cycle that is controlled by the day length.
Basically, they grow leaves when the day length is increasing and develop the bulb when it is decreasing.
So unless you can completely exclude natural daylight and replace it with artificial light, the answer to the question is is "try again next spring".
Note, there are species of allium which are grown as ornamental plants. You might want to check them out (with Google) and buy some of those bulbs next year instead of using an onion from the supermarket!