On the effect of military votes, the write-ins and a recount from The Washington Post:
"We can be confident, though, that it wouldn’t. As of May 2016, there were only about 8,700 people from Alabama serving in the armed forces. Assuming that’s held fairly steady, even 100 percent turnout from that group would account for only about 42 percent of the gap that Moore needs. Even if all of those servicemembers voted and all of them voted for Moore, Jones would still have a lead of 0.9 percentage points. Not enough.
Tapper then asked about the write-in votes. Might those somehow affect the results?
“They might, Jake,” Merrill replied, “but they might not even be impactful.”
https://www.washingtonpost.com/news...politics:homepage/card&utm_term=.95da4cc02f62
That seems likely. If all of those ballots were thrown out, the result would be a bigger lead for Jones, not a smaller one. If you have five apples, one friend has four and a third has one, you have 50 percent of the apples. If the third friend eats his, you’ve got five of the nine remaining apples — or 56 percent of those remaining. Perhaps some of those write-in votes are for Moore, in which case they'd presumably be added to his total. But that seems unlikely."