hosts module and state fix

- a small doc fix in the host state
- changing the _write_hosts function to write the hosts file aliases in the same line

for example:
```
1.2.3.4  alias1 alias2
```
instead of
```
1.2.3.4 alias1
1.2.3.4 alias2
```