Generally the aloe vera flower comes out after 2-3 years. If you transplant an already large plant, it may take less time. But the roots have to be very solid in the ground so that it produces the long pod and the flower at the tip.
You have to keep in mind that there are many varieties of aloe vera @anggreklestari.