That depends on what you write to.
Either it is a regular file and file system specific calls are used or it is a device and you eventually use to the target disk (or whatever) underlying driver.
http://www.makelinux.net/books/ulk3/understandlk-CHP-14-SECT-5#understandlk-CHP-14-SECT-5