What you wrote is a perfectly good cadence.
I would describe the E simply as an accented passing-note in the alto between the F# and D#. The Wikipedia definition is
A passing tone (PT) or passing note is a nonchord tone prepared by a
chord tone a step above or below it and resolved by continuing in the
same direction stepwise to the next chord tone (which is either part
of the same chord or of the next chord in the harmonic progression).
It does sound a bit like a 6/4 chord - but there is nothing wrong with writing a harmonic progression which creates a sense of ambiguity for the listener, and then resolves it.
Others may want to call it a suspended 4th chord (even though the E isn't a suspension because it isn't the continuation of an E at the end of bar 1) or a dominant 11th. But if you wrote it because it sounds right, that's more important than giving it a pedantically correct name!
Whether you are "permitted" to do such a thing if you want full marks in an exam is a different issue, of course. "Passing music exams" and "writing music" are not necessarily the same thing!
As a very minor point, it would be more usual to write the F# in the top part as a single dotted-whole-note, not as you did. Most music notation software should be able to handle three "voices" or "layers" with independent rhythms on one stave.