Index: uspace/srv/fs/ext4fs/ext4fs_ops.c
===================================================================
--- uspace/srv/fs/ext4fs/ext4fs_ops.c	(revision 2b9e14210ecf751ecd06bad4658e9fd6c886f672)
+++ uspace/srv/fs/ext4fs/ext4fs_ops.c	(revision 27ca3a3e5448cd0c42a1d62d96d92cce18a2fc0f)
@@ -935,4 +935,5 @@
 	rc = ext4fs_node_get(&fn, service_id, index);
 	if (rc != EOK) {
+		EXT4FS_DBG("node get error");
 		return rc;
 	}
@@ -942,4 +943,5 @@
 		ext4fs_node_put(fn);
 		async_answer_0(callid, rc);
+		EXT4FS_DBG("data write recv");
 		return rc;
 	}
@@ -962,8 +964,16 @@
 
 	rc = ext4_filesystem_get_inode_data_block_index(fs, inode_ref->inode, iblock, &fblock);
+	if (rc != EOK) {
+		// TODO error
+		ext4fs_node_put(fn);
+		EXT4FS_DBG("error loading block addr");
+		return rc;
+	}
 
 	if (fblock == 0) {
+
 		rc =  ext4_bitmap_alloc_block(fs, inode_ref, &fblock);
 		if (rc != EOK) {
+			EXT4FS_DBG("allocation failed");
 			ext4fs_node_put(fn);
 			async_answer_0(callid, rc);
@@ -980,4 +990,5 @@
 	rc = block_get(&write_block, service_id, fblock, flags);
 	if (rc != EOK) {
+		EXT4FS_DBG("error in loading block \%d", rc);
 		ext4fs_node_put(fn);
 		async_answer_0(callid, rc);
@@ -999,4 +1010,5 @@
 	rc = block_put(write_block);
 	if (rc != EOK) {
+		EXT4FS_DBG("error in writing block \%d", rc);
 		ext4fs_node_put(fn);
 		return rc;
@@ -1019,5 +1031,4 @@
 ext4fs_truncate(service_id_t service_id, fs_index_t index, aoff64_t new_size)
 {
-	EXT4FS_DBG("");
 	fs_node_t *fn;
 	ext4fs_node_t *enode;
@@ -1112,6 +1123,4 @@
 static int ext4fs_sync(service_id_t service_id, fs_index_t index)
 {
-	EXT4FS_DBG("");
-
 	int rc;
 	fs_node_t *fn;
