immediately writes the data i want it to write and cache that what is not so important
This isn't really feasible, the delayed writes are controlled by the kernel, either you do, or you don't.
These parameters can be manipulated by accessing
/proc/sys/vm/dirty_writeback???
There is a little info in
Documentation/sysctl/vm.txt
but I would suggest 'google is your fiend'
NOTE it is not a good idea to turn off delayed writes on flash media, if you do, you can expect to start counting its life in weeks.
You will also loose the performance advantage, and may need to monitor the system carefully for disk thrashing.
turn-off the computer by simple unplug it
I never do this, i log in remotely over shh and run 'poweroff' from the prompt before turning off the power.