We can use different stems in order to write more than one voice in a single staff. The next example may help:
In this example we are able to write 3 voices with different rhythms in a single staff by using different stems.
The E has been moved to avoid collision with the A (circled notes). Both notes should to be played at the same time: