Flowering is normal and indicates that tubers are forming below the soil. You can leave the flowers or pinch them off to redirect energy to the tubers.