The judge has a number of choices. If, after hearing closing arguments, she is reasonably sure of how she is going to rule, she can choose to do an oral order. If she does that, she will usually ask the winning party to draft a proposed written order lining up with the oral order for the Court to review and sign.
If there are new legal theories or arguments that require a little argument, the judge might take the case under advisement. No idea how that long that it would stay that way. But if the case is taken under advisement, that means that the Court will issue a written order.
The Court could also take the case under advisement and bring the parties back for a new date (say in a few days up to several weeks).
The overall point, is that there are far more ways than one for the Court to rule on this.