Leek, onion, and garlic all belong to the same family. Leek is more or less a milder onion, usually with a smaller bulb. You may have leek or onion and only tasting it will tell you what it is. It won't harm you to take a little nibble. You definitely don't have garlic here. The flower head you show is very typical of onion that I grow. Ken