erm its the syntax your using

/writeini file.ini Section Item Data

so...

/writeini test.ini mIRC mamamya I love scripting

if you use that it should come out like this on your ini

[mIRC]
mamamya=I love scripting


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }